package com.asianrapid.service.impl.sys;

import com.asianrapid.dao.MoneyDao;
import com.asianrapid.model.sys.MoneyEntity;
import com.asianrapid.service.sys.MoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "moneyServiceImpl")
public class MoneyServiceImpl implements MoneyService {

    @Autowired
    private MoneyDao moneyDao;



    @Override
    public MoneyEntity getMoneyEntityByLoginName(String name) {
        return moneyDao.getMoneyEntityByLoginName(name);
    }

    @Override
    public List<MoneyEntity> moneysList(String name, int pageSize, int start) {
        return moneyDao.moneysList(name,  pageSize,  start);
    }

    @Override
    public Integer moneysSize(String name, int pageSize, int start) {
        return moneyDao.moneysSize(name, pageSize, start);
    }

    @Override
    public void insertMoney(MoneyEntity moneyEntity) {
        moneyDao.insertMoney(moneyEntity);
    }

    @Override
    public void updateMoney(MoneyEntity moneyEntity) {
        moneyDao.updateMoney(moneyEntity);
    }

    @Override
    public void deleteMoneys(List<String> groupId) {
        moneyDao.deleteMoneys(groupId);
    }

}
